<?php
/**
 * Created by PhpStorm.
 * User: Mr wang
 * Date: 2019/12/16
 * Time: 上午11:28
 */

namespace App\Validate;

class UserValidate extends BaseValidate
{
    protected $rule = [
        'name' => [
            'notEmpty' => ['1001'],
            'betweenLen' => [1, 5, '1002'],
        ],
        'age' => [
            'required' => ['年龄不能为空']
        ]
    ];
    protected $secnce = [
        'add' => ['name'],
        'edit' => ['name','age']
    ];
}
